PATHMac OS 8 and 9 Developer Documentation > Networking and Communications > URL Access Manager >

Transferring Files With the URL Access Manager


URLGetFileInfo

Obtains the file type and creator for a file name.

OSStatus URLGetFileInfo (
                     StringPtr name,
                     OSType* type,
                     OSType* creator);
name
A pointer to a Pascal string. Before calling URLGetFileInfo , set the string to the name of the file for which you want information.
type
A pointer to a value of type OSType . On return, this parameter contains the file's type code.
creator
A pointer to a value of type OSType . On return, this parameter contains the file's creator code.
function result
A result code. For a list of possible result codes, see Result Codes .

DISCUSSION

The URLGetFileInfo function obtains a file's type and creator codes. The type and creator returned in type and creator are determined by the Internet configuration mapping table and are based on the filename extension. For example, if you pass the file name jane.txt , URLGetFileInfo will return `TEXT' in the type parameter and `ttxt' in the creator parameter.


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)